package com.hmkj.core.po.account;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.function.Consumer;


/**
 * 模拟账户实体信息<br>
 *
 * @author eproo
 * @date   2018-07-05 09:50:54
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "模拟账户")
@Table(name = "biz_account_simulation")
public class AccountSimulation extends GenericPo<Integer> {

    public static final String TABLE_NAME = "biz_account_simulation";

	/**
	 * id
	 **/
	@ApiModelProperty(value = "id")
	private Integer id;
	/**用户ID**/
	@ApiModelProperty(value = "用户ID")
	private Integer userId;
	/**账户总额**/
	@ApiModelProperty(value = "账户总额")
	private BigDecimal total;
	/**可用金额**/
	@ApiModelProperty(value = "可用金额")
	private BigDecimal available;
	/**冻结金额**/
	@ApiModelProperty(value = "冻结金额")
	private BigDecimal freeze;
	/**点买总额**/
	@ApiModelProperty(value = "点买总额")
	private BigDecimal tenderCount;
	/**费用总额**/
	@ApiModelProperty(value = "费用总额")
	private BigDecimal feeCount;
	/**盈利总额**/
	@ApiModelProperty(value = "盈利总额")
	private BigDecimal profitCount;
	/**备注**/
	@ApiModelProperty(value = "备注")
	private String remark;

    public AccountSimulation(){}

    public AccountSimulation(Consumer<AccountSimulation> consumer){
    consumer.accept(this);
    }
}

